package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Image string  `gorm:"type:varchar(100);not null;comment:商品封面"`
	Name  string  `gorm:"type:varchar(30);not null;comment:商品名称"`
	Price float64 `gorm:"type:float(30);not null;comment:商品价格"`
	Stock int64   `gorm:"type:int(11);not null;comment:库存"`
}
